﻿using UnityEngine;

public class Preview : MonoBehaviour
{
    public SpriteRenderer PreviewCell;
    public SpriteRenderer PreviewTail;

    public void InitPreview(Color color)
    {
        PreviewCell.color = color;
        PreviewTail.color = color;
    }

    public void ShowPreview(Vector3 position)
    {
        gameObject.SetActive(true);
        transform.position = position;
    }

    public void HidePreview()
    {
        gameObject.SetActive(false);
    }
}
